-
-
Notifications
You must be signed in to change notification settings - Fork 206
fix: remove problematic defaults from sample_last_cit() parameters
#2441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…ation Co-authored-by: krlmlr <[email protected]>
sample_last_cit() parameters
krlmlr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot: Merge main, resolve conflicts as needed, and obey updated instructions.
Co-authored-by: krlmlr <[email protected]>
Co-authored-by: krlmlr <[email protected]>
Co-authored-by: krlmlr <[email protected]>
Merged |
The
sample_last_cit()function had defaultsagebins = n / 7100andpref = (1:(agebins + 1))^-3that only work for n ≥ 7100, causing silent failures with confusing error messages for smaller graphs.Changes
agebinsandprefparameters insample_last_cit()onlylastcit.game()function retains its original default parameters to maintain backward compatibility (per project guideline: "Never change deprecated functions")agebinsmust be ≥ 1 and controls aging discretizationprefshould be a vector of lengthagebins + 1(1:(agebins + 1))^-3is a typical choiceUsage
The new function now requires explicit parameters:
The deprecated function maintains backward compatibility:
Fixes #1776
Original prompt
sample_last_citnot well documented #1676💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.